    <div class="container footie" id="content">
        <div class="schoolin">友情链接:
                <?php $lModel = Relatedlink::model()->findAll();?>
                <?php $count = count($lModel) > 4 ? 4 : count($lModel);?>
                <?php for($i = 0;$i < $count;$i++):?>
                    <a target="blank" href="<?php echo $lModel[$i]->url?>">
                        <img src="<?php echo Yii::app()->baseUrl.'/'.$lModel[$i]->pic->description. '/'.$lModel[$i]->pic->fileName?>" 
                             alt="<?php echo $lModel[$i]->pic->fileName; ?>" />
                    </a>
                    <?php if($i != $count-1):?>
                        <?php echo " | ";?>
                    <?php endif;?>
                <?php endfor;?>
        </div>
    </div>
<footer style="padding-top:10px;color:black">
 	    <div id="top-button">
            <a style="cursor:pointer;" onclick="$('body,html').animate({scrollTop:0},500);">
            <img src="<?php echo yii::app()->baseUrl.'/images/returnTop.png'?>"></img>
            </a>
        </div>
      <div class="container"style="text-align:center;color:black">
        <p style="margin-bottom:0px">联系地址：广西桂林市七星区金鸡路1号桂林电子科技大学花江校区 | 联系电话：0773-2291326 | 邮政编码：541004</p>
        <p style="text-align:center">
		Copyright &copy; <?php echo '2011 - '. date('Y'); ?> by GUET Online Judge Team.<br/>All Rights Reserved.
        </p>
      </div>
    </footer>
